package com.fzb.forum4j.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fzb.forum4j.dao.api.ITagDao;
import com.fzb.forum4j.po.CommonArea;
import com.fzb.forum4j.po.QueryMode;
import com.fzb.forum4j.po.Tag;
import com.fzb.forum4j.service.api.IArticleService;
import com.fzb.forum4j.service.api.ITagService;
@Service("tagServiceImpl")

public class TagServiceImpl extends BaseServiceImpl<Tag> implements
		ITagService {

	@Resource(name="tagDaoImpl")
	private ITagDao tagDao;
	
	@Resource(name="articleServiceImpl")
	private IArticleService articleService;
	
	@Override
	public Boolean addTag(String[] str, CommonArea carea) {
		
		return tagDao.addTag(str, carea);
	}

	@Override
	public Boolean delTag(String[] str, CommonArea carea) {
		return tagDao.delTag(str, carea);
	}

	@Override
	public Boolean updateTag(String[] str, CommonArea carea) {
		return tagDao.delTag(str, carea);
	}

	@Override
	public List<Map<String,String>> initHotTagByCategoryId(Integer i) {
		return tagDao.initHotTagByCategoryId(i);
	}
	
	@Override
	public void getList(QueryMode<Tag> qmd) {
		tagDao.getList(qmd);
	}


	
}
